exports.data = {
	json: {
		kind: 'Snippet',
		body: ['"t-sticky": "tdesign-miniprogram/sticky/sticky"'],
		detail: 'Sticky 粘性布局',
		documentation: `在app.json或index.json中引入组件`,
	},
	wxml: {
		kind: 'Snippet',
		body: ['<t-sticky${1}>${2}</t-sticky>'],
		detail: 'Sticky 粘性布局',
		documentation: `Sticky 组件与 CSS 中position: sticky属性实现的效果一致，当组件在屏幕范围内时，会按照正常的布局排列，当组件滚出屏幕范围时，始终会固定在屏幕顶部。`,
		attrs: [
			{
				kind: 'Field',
				body: ['disabled'],
				detail: 'disabled',
				documentation: '是否禁用组件',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['offset-top='],
				detail: 'offset-top',
				documentation: '吸顶时与顶部的距离，单位px',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['z-index='],
				detail: 'z-index',
				documentation: '吸顶时的 z-index',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['container='],
				detail: 'container',
				documentation: '一个函数，返回容器对应的 NodesRef 节点',
				vals: null,
			},
			//event
			{
				kind: 'Event',
				body: ['bind:scroll'],
				detail: 'scroll',
				documentation:
					'滚动时触发 参数(detail: { scrollTop: number, isFixed: boolean })',
				vals: null,
			},
			//css
			{
				kind: 'Field',
				body: ['t-class='],
				detail: 't-class',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-content='],
				detail: 't-class-content',
				documentation: '图片样式类',
				vals: null,
			},
		],
	},
}
